package com.sanctity.controller;

import com.sanctity.feign.vo.patient.PatientVo;
import com.sanctity.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @belongsProject spring-cloud
 * @description <患者信息后端控制器>
 * @author Sanct
 * @version 1.0.0
 * @create 2024/2/2 21:02
 **/
@RestController
@RequestMapping("/patient")
public class PatientController {

    @Autowired
    private PatientService patientService;

    @GetMapping("{id}")
    public PatientVo getPatInfoById(@PathVariable("id") Long id){
        return patientService.findPatientById(id);
    }
}
